<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css 样式表练习</title>
    <link rel="stylesheet" href="../public/css/main.css">
    <link rel="stylesheet" href="css/another.css">
    <style>
        h2 {
            border-bottom: 2px solid #ccc;
            padding-bottom: 0.25em;
            color: darkgreen;
        }

        li[title*="属性"] {
            color: red;
        }

        .blue {
            color: blue;
        }

        #push {
            color: salmon;
        }

        a {
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }

        li:nth-child(6) {
            background-color: #ccc;
        }

        #pseudo::first-letter {
            color: red;
            font-size: 1.2em;
        }

        #伪元素选择::first-line {
            color: darkblue;
            font-size: 1.5em;
        }

        ol ol li {
            color: darkgoldenrod;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family: 黑体;
        }
    </style>
</head>

<body>
    <header>
        <h1 contenteditable class="blue">css 样式表练习</h1>
    </header>
    <main>
        <section>
            <h2 style="color:rgb(21, 21, 122);"> 样式表的三种使用方法</h2>
            <hr>
            <ol>
                <li>外部样式表</li>
                <li>内部样式表</li>
                <li>内嵌样式表</li>
            </ol>
        </section>
        <section>
            <h2>选择符</h2>
            <ol>
                <li>简单选择符</li>
                <ol>
                    <li>类型选择符</li>
                    <li>通配选择符</li>
                    <li title="属性选择符">属性选择符</li>
                    <li class="blue">类选择符</li>
                    <li id="push">ID选择符</li>
                    <li><a href="#">伪类选择符</a></li>
                </ol>
                <li id="pseudo">伪元素选择符</li>
                <li id="伪元素选择">伪元素选择符</li>
                <li>组合选择符</li>
                <ol>
                    <li>后代选择符</li>
                    <li>子元素选择符</li>
                    <li>相邻选择符</li>
                    <li>兄弟选择符</li>
                </ol>
                <li>群组选择符</li>
            </ol>
        </section>
    </main>
    <footer></footer>
</body>

</html>